<include file="Home@zh/Public/header" />
<script src="http://api.map.baidu.com/api?v=1.3"></script>
<div class="container" id="content">
<include file="Home@zh/Public/pathcrumb" />
    <div class="row">
      <div class="span2-8">
        <include file="Home@zh/Public/typenavbar" />
      </div>

      <!-- 正文列表 -->
      <div class="span8">
        <div class="type-content">
          <h3 class="widget-title"><strong>{$type.name}</strong></h3>
          <div class="article-content">
            <div id="mapCanvas" class="map-canvas no-margin" style="height:300px;">
                
              <script type="text/javascript">

              var map = new BMap.Map("mapCanvas");            // 创建Map实例
              var point = new BMap.Point("<?php echo $web_config['mapx']?>", "<?php echo $web_config['mapy']?>"); 
              map.centerAndZoom(point,15);                // 初始化地图,设置中心点坐标和地图级别。

              map.enableScrollWheelZoom();                  //启用滚轮放大缩小

              //添加缩放控件

              map.addControl(new BMap.NavigationControl());  

              map.addControl(new BMap.ScaleControl());  

              map.addControl(new BMap.OverviewMapControl()); 

              

              var marker = new BMap.Marker(point); // 创建标注 

              map.addOverlay(marker); // 将标注添加到地图中

              var infoWindow = new BMap.InfoWindow("<?php echo $web_config['company']?><br/><span class=''>地址：<?php echo $web_config['address']?> "); // 创建信息窗口对象

              marker.openInfoWindow(infoWindow);

              </script>

              </div>
        
              <br>
        
              <h3 class="article-title">联系我们：</h3>
              <p>公司：{$web_config.company}</p>
              <p>地址：{$web_config.address}</p>
              <p>电话：{$web_config.tell}</p>
              <p>邮箱：{$web_config.email}</p>
            </div>  
      </div>  

    </div>

</div>

<include file="Home@zh/Public/footer"/>
